<div class="page-header" data-ng-controller="HeaderController">
  <div class="logo pull-left">
    <a class="navbar-brand" ui-sref="home" mean-token="'site-title'">MEAN</a>
  </div>
  <div class="left pull-left">
    <ul class="navbar-nav nav">
      <li data-ng-repeat="item in menus.main" ui-route="/{{item.link}}" ng-class="{active: $uiRoute}">
          <a mean-token="item.link" ui-sref='{{item.link}}'>{{item.title}}</a>
      </li>
    </ul>
  </div>

  <div class="account">
    <div class="text-edit">
      <div class="pull-right" data-ng-show="global.authenticated" mean-token-editable></div>
      <div class="pull-right" data-ng-show="global.authenticated" mean-translate></div>
    </div>
    <ul class="navbar-nav nav" data-ng-hide="global.authenticated">
        <li><a ui-sref='auth.register'>Register</a>
        </li>
        <li class="divider-vertical"></li>
        <li><a ui-sref='auth.login'>Login</a>
        </li>
     
       <!--  <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                 操 作 菜 单  <b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
                  <li><a ui-sref='create_item'>创建册子</a>
                  </li>
                   <li><a ui-sref='albums'>册子列表</a>
                  </li>
            </ul>
        </li> -->
    </ul>
    <ul class="navbar-nav nav" data-ng-show="global.authenticated">
        <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                {{global.user.name}} <b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
                <li><a href="/logout">Signout</a>
                </li>
            </ul>
        </li>
        <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                 操 作 菜 单  <b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
                  <li><a ui-sref='create_item'>创建册子</a>
                  </li>
                   <li><a ui-sref='albums'>册子列表</a>
                  </li>
            </ul>
        </li>
    </ul>
  </div>
</div>
